package com.hs.service;


import com.hs.entity.CourseCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseCollectService {
    //增
    int addCourseCollect(CourseCollect courseCollect);
    //改
    int updateCourseCollect(CourseCollect courseCollect);
    //删
    int deleteCourseCollect(int id);
    //查
    List<CourseCollect> getCourseCollectById(int id);
    int collectCourse(@Param("cid")int cid, @Param("uid") int uid);
    int cancelCollect(@Param("cid")int cid, @Param("uid") int uid);
    boolean isCollected(@Param("cid")int cid, @Param("uid") int uid);
}
